using System;
using System.ComponentModel.DataAnnotations;


namespace NC.ViewModels
{
    public class CreatePost
    {
        public int Id { get; set; }

        public string Needed { get; set; }

        public int CategoryID { get; set; }

        [Required(ErrorMessage = "Please include your title")]
        public string Title { get; set; }

        [Required(ErrorMessage = "Please include your description")]
        public string Description { get; set; }

        public DateTime PostDate { get; set; }

        public bool ShowEmailInPost { get; set; }

        [RegularExpression(@"^\d+$", ErrorMessage = "Only Numbers are allowed as phone numbers.")]
        public string ContactPhone { get; set; }

        public int LoactionId { get; set; }

        [Required(ErrorMessage = "Please select your country")]
        public string Country { get; set; }

        [Required(ErrorMessage = "Please select your state/region")]
        public string State { get; set; }

        [Required(ErrorMessage = "Please select your City")]
        public string City { get; set; }

        public string ZipCode { get; set; }

        public string PostCreatorEmail { get; set; }

        public string PostCreatorName { get; set; }
              
    }
}
